package ink.metoo.gude.util

import org.junit.jupiter.api.Assertions.*
import kotlin.test.Test

class SecureCodeUtilsTest {

    val log = logger()

    @Test
    fun generateSecureCode() {
        val secureCode = SecureCodeUtils.generateSecureCode()
        log.info("secureCode: $secureCode")
        assertTrue(secureCode.length == 6)
        assertTrue(secureCode.matches(Regex("[A-Za-z0-9]+")))
    }

}